# -*- coding:utf-8 -*-
# Author : leiyh
# Data ：2019/7/9 21:34
import yaml


def get_yaml(yaml_path):
    with open(yaml_path, 'r', encoding='utf-8') as f:
        content = yaml.load(f.read(), Loader=yaml.FullLoader)
    return content


if __name__ == '__main__':
    print(get_yaml('caps.yaml'))  # 获取yaml文件中的数据
